package com.dainel.mybatis.demo.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

@TableComment("用户组表")
@Table(name = "gs_user_group")
@TableName("gs_user_group")
@TableCharset(MySqlCharsetConstant.UTF8MB4)
public class GroupBean {

    @Column(name = "group_key", isKey = true, type = MySqlTypeConstant.VARCHAR, length = 64)
    @ColumnComment("主键")
    @TableId(value = "group_key")
    private String groupKey;

    @ColumnComment("用户组名")
    @Column(name = "group_name", type = MySqlTypeConstant.VARCHAR, length = 64)
    @TableField(value = "group_name")
    private String groupName;

    public String getGroupKey() {
        return groupKey;
    }

    public void setGroupKey(String groupKey) {
        this.groupKey = groupKey;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }
}
